import request from '@/utils/request'

// 获取时间范围下拉列表
export function getTimeRangeList() {
  return request({
    url: '/operation/web/operationWaterQualityAnalysis/timeList',
    method: 'get'
  })
}

// 获取水质指标下拉列表
export function getWaterQualityIndicatorList() {
  return request({
    url: '/operation/web/operationWaterQualityAnalysis/waterQualityList',
    method: 'get'
  })
}

// 获取实时水质指标
export function getRealtimeWaterQualityIndex(params) {
  return request({
    url: '/operation/web/operationWaterQualityAnalysis/waterQualityIndex',
    method: 'get',
    params
  })
}

// 获取指标达标率
export function getWaterQualityStandardRate(params) {
  return request({
    url: '/operation/web/operationWaterQualityAnalysis/waterQualityStandardRate',
    method: 'get',
    params
  })
}

// 获取水质趋势分析
export function getWaterQualityTrend(params) {
  return request({
    url: '/operation/web/operationWaterQualityAnalysis/waterQualityTrend',
    method: 'get',
    params
  })
}

// 获取异常数据统计
export function getWaterQualityExceptionData(params) {
  return request({
    url: '/operation/web/operationWaterQualityAnalysis/waterQualityExceptionData',
    method: 'get',
    params
  })
}

// 获取水质综合评分
export function getWaterQualityComprehensiveScore(params) {
  return request({
    url: '/operation/web/operationWaterQualityAnalysis/waterQualityComprehensiveScore',
    method: 'get',
    params
  })
}

// 获取详细水质数据
export function getWaterQualityDetailData(params) {
  return request({
    url: '/operation/web/operationWaterQualityAnalysis/waterQualityDetailData',
    method: 'get',
    params
  })
}